/**
 */
package org.mro.grib.model.files.secondEdition.grids;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Vertical Dimension Coordinate Values Definition</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.mro.grib.model.files.secondEdition.grids.GridsPackage#getVerticalDimensionCoordinateValuesDefinition()
 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Code table 3.21 \u2013 Vertical dimension coordinate values definition'"
 * @generated
 */
public enum VerticalDimensionCoordinateValuesDefinition implements Enumerator {
	/**
	 * The '<em><b>EXPLICIT COORDINATE VALUES SET</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EXPLICIT_COORDINATE_VALUES_SET_VALUE
	 * @generated
	 * @ordered
	 */
	EXPLICIT_COORDINATE_VALUES_SET(0, "EXPLICIT_COORDINATE_VALUES_SET", "EXPLICIT_COORDINATE_VALUES_SET"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>LINEAR COORDINATES</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LINEAR_COORDINATES_VALUE
	 * @generated
	 * @ordered
	 */
	LINEAR_COORDINATES(1, "LINEAR_COORDINATES", "LINEAR_COORDINATES"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>GEOMETRIC COORDINATES</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #GEOMETRIC_COORDINATES_VALUE
	 * @generated
	 * @ordered
	 */
	GEOMETRIC_COORDINATES(2, "GEOMETRIC_COORDINATES", "GEOMETRIC_COORDINATES"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>MISSING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MISSING_VALUE
	 * @generated
	 * @ordered
	 */
	MISSING(255, "MISSING", "MISSING"); //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>EXPLICIT COORDINATE VALUES SET</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EXPLICIT COORDINATE VALUES SET</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EXPLICIT_COORDINATE_VALUES_SET
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Explicit coordinate values set'"
	 * @generated
	 * @ordered
	 */
	public static final int EXPLICIT_COORDINATE_VALUES_SET_VALUE = 0;

	/**
	 * The '<em><b>LINEAR COORDINATES</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>LINEAR COORDINATES</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LINEAR_COORDINATES
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Linear coordinates\r\nf(1) = C1\r\nf(n) = f(n\u20131) + C2'"
	 * @generated
	 * @ordered
	 */
	public static final int LINEAR_COORDINATES_VALUE = 1;

	/**
	 * The '<em><b>GEOMETRIC COORDINATES</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>GEOMETRIC COORDINATES</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #GEOMETRIC_COORDINATES
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Geometric coordinates\r\nf(1) = C1\r\nf(n) = C2 \327 f(n\u20131)'"
	 * @generated
	 * @ordered
	 */
	public static final int GEOMETRIC_COORDINATES_VALUE = 2;

	/**
	 * The '<em><b>MISSING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MISSING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MISSING
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Missing'"
	 * @generated
	 * @ordered
	 */
	public static final int MISSING_VALUE = 255;

	/**
	 * An array of all the '<em><b>Vertical Dimension Coordinate Values Definition</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final VerticalDimensionCoordinateValuesDefinition[] VALUES_ARRAY =
		new VerticalDimensionCoordinateValuesDefinition[] {
			EXPLICIT_COORDINATE_VALUES_SET,
			LINEAR_COORDINATES,
			GEOMETRIC_COORDINATES,
			MISSING,
		};

	/**
	 * A public read-only list of all the '<em><b>Vertical Dimension Coordinate Values Definition</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<VerticalDimensionCoordinateValuesDefinition> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Vertical Dimension Coordinate Values Definition</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static VerticalDimensionCoordinateValuesDefinition get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			VerticalDimensionCoordinateValuesDefinition result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Vertical Dimension Coordinate Values Definition</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static VerticalDimensionCoordinateValuesDefinition getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			VerticalDimensionCoordinateValuesDefinition result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Vertical Dimension Coordinate Values Definition</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static VerticalDimensionCoordinateValuesDefinition get(int value) {
		switch (value) {
			case EXPLICIT_COORDINATE_VALUES_SET_VALUE: return EXPLICIT_COORDINATE_VALUES_SET;
			case LINEAR_COORDINATES_VALUE: return LINEAR_COORDINATES;
			case GEOMETRIC_COORDINATES_VALUE: return GEOMETRIC_COORDINATES;
			case MISSING_VALUE: return MISSING;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private VerticalDimensionCoordinateValuesDefinition(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //VerticalDimensionCoordinateValuesDefinition
